package middleware

import (
	"github.com/gin-gonic/gin"
	"owl/middleware"
	"resume/bootstrap"
)

var middlewares = []gin.HandlerFunc{
	middleware.HeaderAddRequestId,
	middleware.Cors,
	// middleware.RateLimiter(10000, 1*time.Minute),
}

func init() {

	_ = bootstrap.Stage.Invoke(func(e *gin.Engine) {
		e.Use(middlewares...)
	})
}
